widget: Reset the accessible role when a new accessible type is set
authorBenjamin Otte <otte@gnome.org>
Mon, 18 Jul 2011 15:41:01 +0000 (17:41 +0200)
committerBenjamin Otte <otte@gnome.org>
Mon, 18 Jul 2011 16:30:50 +0000 (18:30 +0200)
commit9c81336830b1e430b57fa6cbfee4d792dd466bda
treea083481ae5ab303a793c043d721738992a0fdbfe
parentb61a200036559ff65a04cee7032f0def71e54205
widget: Reset the accessible role when a new accessible type is set

We want the role to be kept in the accessible object. Using
gtk_widget_class_set_accessible_role() is only meant as a quick
workaround to requiring subclassing of the accessibles in the quite
common case where a subclass does not change the accessible
implementation at all and only has a different role.
gtk/gtkwidget.c